package com.ruoyi.project.question.compose.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 问卷问题关联对象 questionnaire_question_conn
 * 
 * @author Bandit
 * @date 2021-12-14
 */
public class QuestionnaireQuestion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 问卷id */
    private Long questionnaireId;

    /** 问题id */
    @Excel(name = "问题id")
    private Long questionId;

    public void setQuestionnaireId(Long questionnaireId)
    {
        this.questionnaireId = questionnaireId;
    }

    public Long getQuestionnaireId()
    {
        return questionnaireId;
    }
    public void setQuestionId(Long questionId)
    {
        this.questionId = questionId;
    }

    public Long getQuestionId()
    {
        return questionId;
    }

    public QuestionnaireQuestion(Long questionnaireId, Long questionId) {
        this.questionnaireId = questionnaireId;
        this.questionId = questionId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("questionnaireId", getQuestionnaireId())
            .append("questionId", getQuestionId())
            .toString();
    }
}
